package com.share.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

import java.util.Date;

/**
 * caifan 2017/10/2
 */
@Data
@TableName(value ="user")
public class User extends BaseEntity {
    @Version
    private Integer version;
    private String username;
    private String nickname;
    private String password;
    private String email;
    private String phone;
    private Integer age;
    private Integer gender;
    private Integer status;
    @TableField(value = "last_login_time")
    private Date lastLoginTime;

    @TableLogic(value = "0", delval = "1")
    private Integer del;
}
